package com.springboot2.infrastructure.entity;

import java.util.Date;

public class SocketData {

    private Integer fromUserId; //发送方id
    private Integer toUserId;   //接收方id
    private Integer msgType;    //信息类型：0：socket心跳；1：socket注册；2：文本信息；3：图片
    private String msg;         //信息内容
    private Date sendTime;      //发送时间

    public Integer getFromUserId() {
        return fromUserId;
    }

    public void setFromUserId(Integer fromUserId) {
        this.fromUserId = fromUserId;
    }

    public Integer getToUserId() {
        return toUserId;
    }

    public void setToUserId(Integer toUserId) {
        this.toUserId = toUserId;
    }

    public Integer getMsgType() {
        return msgType;
    }

    public void setMsgType(Integer msgType) {
        this.msgType = msgType;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }
}
